# $a=@(1,"str",$false,3.14,4,"3")
<# foreach($item in $a)
{
    if ($item -is [int])
    {
        write-host "$item is an integer"
        }
        elseif ($item -is [string])
        {
            write-host "$item is a string"
            }
            elseif ($item -is [bool])
            {
                write-host "$item is a boolean"
                }
                elseif ($item -is [double])
                {
                    write-host "$item is a double"
                    }
                    else
                    {
                        write-host "$item is of unknown type"
                        }
                        }
                        #>
                                                
$a=@(1,"str",$false,3.14,4,"3")
foreach($b in $a)
{
    if ($b -is [int])
    {
        write-host "$b is an integer"
    }
    elseif ($b -isnot [int])
    {
        write-host "$b is not an integer"
    }
}